import UIKit

protocol TitlePresentable {
    var title: String { get }
    var titleColor: UIColor { get }
    var titleFont: UIFont! { get }
    func updateTitleLabel(label: UILabel)
}

extension TitlePresentable {
    var titleColor: UIColor {
        return UIColor.blackColor()
    }
    var titleFont: UIFont! {
        return UIFont(name: "Helvetica", size: 18)
    }
    func updateTitleLabel(label: UILabel) {
        print("我正在更新")
        label.text = title
        label.textColor = titleColor
        label.font = titleFont
    }
}
